public class BuildArray {
    public static void main(String[] args){
        //数组的三种创建方法
        int arr[]=new int[15];

        int array[]={1,2,3,4,5,6,7};

        int num[]=new int[]{1,3,5,7,8,10};
        for (int element:num)
            System.out.println(num[element]);
        int len=array.length;
        System.out.println(len);
    }
}
